.safe-area-container {
    position: relative; /* Change from fixed to relative */
    width: 100%;
}

.container {
    background-color: #f5f5f5;
    min-height: 100vh; /* Use min-height instead of fixed height */
    position: relative;
    overflow-y: auto; /* Allow vertical scrolling */
    padding-bottom: 100rpx; /* Add some bottom padding to ensure full scrollability */
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #F8F9FD;
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30rpx;
}

.back-btn {
    padding: 20rpx;
}

.back-btn image {
    width: 40rpx;
    height: 40rpx;
}

.edit-btn {
    font-size: 28rpx;
    color: #4C6FFF;
}

.category-list {
    padding: 20rpx;
    margin-top: 60rpx;
}

.category-item {
    background: #FFFFFF;
    border-radius: 20rpx;
    margin-bottom: 30rpx;
    padding: 20rpx;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.category-header {
    padding: 20rpx;
    border-bottom: 1px solid #EEEEEE;
}

.category-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
}

.category-input {
    font-size: 32rpx;
    padding: 10rpx;
    border: 1px solid #EEEEEE;
    border-radius: 10rpx;
}

.device-list {
    padding: 20rpx 0;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20rpx;
    border-bottom: 1px solid #F5F5F5;
}

.device-info {
    display: flex;
    align-items: center;
}

.device-icon {
    width: 40rpx;
    height: 40rpx;
    margin-right: 20rpx;
}

.device-name {
    font-size: 28rpx;
    color: #333;
}

.device-actions {
    display: flex;
    align-items: center;
}

.move-btn {
    font-size: 24rpx;
    color: #4C6FFF;
    padding: 10rpx 20rpx;
    border: 1px solid #4C6FFF;
    border-radius: 30rpx;
}

.category-picker {
    width: 200rpx;
}